<template>
  <RouterView />
</template>

<script setup>
import { RouterView } from 'vue-router'
import { useConfigStore } from '@/stores/config'
import { useUserStore } from '@/stores/user'
import { showSYTKBox } from '@/utils/showApi'
import Cookies from 'js-cookie'
import { setCookie } from '@/utils/cookie'
const userStore = useUserStore()
const config = useConfigStore()

const init = () => {
  config.watchChainTree()
  config.initModuleList()
  if (config.getTalentChain.length === 0) {
    config.initTalentChain()
  }
  // userStore.isLogin
  // 暂时屏蔽
  // if (Cookies.get('sytk') !== '1') {
  //   showSYTKBox()
  // }

  setCookie('sytk', '1', import.meta.env.VITE_DOMAIN_URL, false)
  // else {
  //   showSYTKBox()
  // }
}

init()
</script>

<style></style>
